import request from '@/utils/request'

/**
 * 获取操作日志分页列表
 * @param params 查询参数
 * @returns 
 */
export function getOperationLogPage(params: any) {
  return request({
    url: '/api/log/page',
    method: 'get',
    params
  })
}

/**
 * 删除操作日志
 * @param id 日志ID
 * @returns 
 */
export function deleteOperationLog(id: number) {
  return request({
    url: `/api/log/${id}`,
    method: 'delete'
  })
} 